/**
 * Name.java
 *
 * Enterprise Java
 *
 * Author:  Matthew Braddy
 * Created: Nov 21, 2010
 *
 */

package java113.labs;

/**
 *
 * @author Matthew Braddy
 */
public class Name {

    private int id;

    private int classification_id;

    private int address_id;

    private String last;

    private String first;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the classification_id
     */
    public int getClassification_id() {
        return classification_id;
    }

    /**
     * @param classification_id the classification_id to set
     */
    public void setClassification_id(int classification_id) {
        this.classification_id = classification_id;
    }

    /**
     * @return the address_id
     */
    public int getAddress_id() {
        return address_id;
    }

    /**
     * @param address_id the address_id to set
     */
    public void setAddress_id(int address_id) {
        this.address_id = address_id;
    }

    /**
     * @return the last
     */
    public String getLast() {
        return last;
    }

    /**
     * @param last the last to set
     */
    public void setLast(String last) {
        this.last = last;
    }

    /**
     * @return the first
     */
    public String getFirst() {
        return first;
    }

    /**
     * @param first the first to set
     */
    public void setFirst(String first) {
        this.first = first;
    }

    public String toString() {

        return "id: " + id + "\n" +
                "name: " + first + " " + last + "\n" +
                "classification ID: " + classification_id + "\n" +
                "address ID:" + address_id;

    }

}
